using System;
using System.Data;
using System.ComponentModel;
using System.Windows.Forms;
using C1.Win.C1Input;
using C1.Win.C1List;
using C1.Win.C1TrueDBGrid;

using PCSUtils.Utils;
using PCSUtils.Log;
using PCSComUtils.Common;
using PCSComUtils.Common.BO;
using PCSComUtils.PCSExc;
using PCSUtils.Framework.TableFrame;
using PCSComProduct.Items.BO;
using PCSComProduct.Items.DS;
using PCSComProduct.Costing.BO;
using PCSComProduct.Costing.DS;
using PCSComUtils.MasterSetup.DS;
using PCSComUtils.DataContext;
namespace PCSProduct.Items
{
	/// <summary>
	/// Summary description for ItemCostMaintenance.
	/// </summary>
	public class ItemCostMaintenance : System.Windows.Forms.Form
	{
		private const string THIS = "PCSProduct.Items.ItemCostMaintenance";
		EnumAction enumAction;
		private DataTable dtGridDesign; //store the design of the grid

		const string GRID_COL_NAME ="NAME";
		const string GRID_COL_CAPTION = "CAPTION";
		const string GRID_COL_WIDTH = "WIDTH";
		private bool blnHasCost;
		ITM_Product objITM_ProductVO = null;


		const string OPERCOST_COL_NAME = "OperCost";
		const string OPERHOUR_COL_NAME = "OperHour";

		#region Windows Form Designer generated code

		private Button btnClose;
		private Button btnHelp;
		private Button btnSave;
		private TextBox txtItem;
		private Button btnItemCost;
		private Button btnItemHour;
		private TextBox txtCostDescription;
		private Label lblCostDescription;
		private CheckBox chkManual;
		private Label lblDescription;
		private TextBox txtDescription;
		private Label lblItem;
		private Label lblRev;
		private Label lblSetupDate;
		private Label lblCCN;
		private Label lblUM1;
		private Button btnCostDetail;
		private CheckBox chkMake;
		private Label lblMaterialCC;
		private C1DateEdit dtmSetupDate;
		private C1.Win.C1TrueDBGrid.C1TrueDBGrid tgridViewData;
		private System.Windows.Forms.Button btnSearchProductDescription;
		private System.Windows.Forms.Button btnSearchProductCode;
		private System.Windows.Forms.TextBox txtMaterialCC;
		private System.Windows.Forms.Button btnMaterialCC;
		private System.Windows.Forms.TextBox txtRevision;
		private System.Windows.Forms.TextBox txtCCNCode;
		private System.Windows.Forms.TextBox txtUM;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private Container components = null;

		public ItemCostMaintenance()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		public ItemCostMaintenance(ITM_Product pobjITM_ProductVO)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			objITM_ProductVO = pobjITM_ProductVO;
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ItemCostMaintenance));
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.btnItemCost = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnItemHour = new System.Windows.Forms.Button();
			this.txtCostDescription = new System.Windows.Forms.TextBox();
			this.lblCostDescription = new System.Windows.Forms.Label();
			this.chkManual = new System.Windows.Forms.CheckBox();
			this.lblDescription = new System.Windows.Forms.Label();
			this.txtDescription = new System.Windows.Forms.TextBox();
			this.btnSearchProductDescription = new System.Windows.Forms.Button();
			this.lblItem = new System.Windows.Forms.Label();
			this.txtItem = new System.Windows.Forms.TextBox();
			this.lblRev = new System.Windows.Forms.Label();
			this.lblSetupDate = new System.Windows.Forms.Label();
			this.btnSearchProductCode = new System.Windows.Forms.Button();
			this.lblCCN = new System.Windows.Forms.Label();
			this.lblUM1 = new System.Windows.Forms.Label();
			this.btnCostDetail = new System.Windows.Forms.Button();
			this.tgridViewData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.chkMake = new System.Windows.Forms.CheckBox();
			this.lblMaterialCC = new System.Windows.Forms.Label();
			this.dtmSetupDate = new C1.Win.C1Input.C1DateEdit();
			this.txtMaterialCC = new System.Windows.Forms.TextBox();
			this.btnMaterialCC = new System.Windows.Forms.Button();
			this.txtRevision = new System.Windows.Forms.TextBox();
			this.txtCCNCode = new System.Windows.Forms.TextBox();
			this.txtUM = new System.Windows.Forms.TextBox();
			((System.ComponentModel.ISupportInitialize)(this.tgridViewData)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmSetupDate)).BeginInit();
			this.SuspendLayout();
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			// 
			// btnItemCost
			// 
			this.btnItemCost.AccessibleDescription = resources.GetString("btnItemCost.AccessibleDescription");
			this.btnItemCost.AccessibleName = resources.GetString("btnItemCost.AccessibleName");
			this.btnItemCost.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnItemCost.Anchor")));
			this.btnItemCost.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnItemCost.BackgroundImage")));
			this.btnItemCost.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnItemCost.Dock")));
			this.btnItemCost.Enabled = ((bool)(resources.GetObject("btnItemCost.Enabled")));
			this.btnItemCost.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnItemCost.FlatStyle")));
			this.btnItemCost.Font = ((System.Drawing.Font)(resources.GetObject("btnItemCost.Font")));
			this.btnItemCost.Image = ((System.Drawing.Image)(resources.GetObject("btnItemCost.Image")));
			this.btnItemCost.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnItemCost.ImageAlign")));
			this.btnItemCost.ImageIndex = ((int)(resources.GetObject("btnItemCost.ImageIndex")));
			this.btnItemCost.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnItemCost.ImeMode")));
			this.btnItemCost.Location = ((System.Drawing.Point)(resources.GetObject("btnItemCost.Location")));
			this.btnItemCost.Name = "btnItemCost";
			this.btnItemCost.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnItemCost.RightToLeft")));
			this.btnItemCost.Size = ((System.Drawing.Size)(resources.GetObject("btnItemCost.Size")));
			this.btnItemCost.TabIndex = ((int)(resources.GetObject("btnItemCost.TabIndex")));
			this.btnItemCost.Text = resources.GetString("btnItemCost.Text");
			this.btnItemCost.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnItemCost.TextAlign")));
			this.btnItemCost.Visible = ((bool)(resources.GetObject("btnItemCost.Visible")));
			this.btnItemCost.Click += new System.EventHandler(this.btnItemCost_Click);
			// 
			// btnSave
			// 
			this.btnSave.AccessibleDescription = resources.GetString("btnSave.AccessibleDescription");
			this.btnSave.AccessibleName = resources.GetString("btnSave.AccessibleName");
			this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSave.Anchor")));
			this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
			this.btnSave.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSave.Dock")));
			this.btnSave.Enabled = ((bool)(resources.GetObject("btnSave.Enabled")));
			this.btnSave.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSave.FlatStyle")));
			this.btnSave.Font = ((System.Drawing.Font)(resources.GetObject("btnSave.Font")));
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.ImageAlign")));
			this.btnSave.ImageIndex = ((int)(resources.GetObject("btnSave.ImageIndex")));
			this.btnSave.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSave.ImeMode")));
			this.btnSave.Location = ((System.Drawing.Point)(resources.GetObject("btnSave.Location")));
			this.btnSave.Name = "btnSave";
			this.btnSave.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSave.RightToLeft")));
			this.btnSave.Size = ((System.Drawing.Size)(resources.GetObject("btnSave.Size")));
			this.btnSave.TabIndex = ((int)(resources.GetObject("btnSave.TabIndex")));
			this.btnSave.Text = resources.GetString("btnSave.Text");
			this.btnSave.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.TextAlign")));
			this.btnSave.Visible = ((bool)(resources.GetObject("btnSave.Visible")));
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnItemHour
			// 
			this.btnItemHour.AccessibleDescription = resources.GetString("btnItemHour.AccessibleDescription");
			this.btnItemHour.AccessibleName = resources.GetString("btnItemHour.AccessibleName");
			this.btnItemHour.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnItemHour.Anchor")));
			this.btnItemHour.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnItemHour.BackgroundImage")));
			this.btnItemHour.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnItemHour.Dock")));
			this.btnItemHour.Enabled = ((bool)(resources.GetObject("btnItemHour.Enabled")));
			this.btnItemHour.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnItemHour.FlatStyle")));
			this.btnItemHour.Font = ((System.Drawing.Font)(resources.GetObject("btnItemHour.Font")));
			this.btnItemHour.Image = ((System.Drawing.Image)(resources.GetObject("btnItemHour.Image")));
			this.btnItemHour.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnItemHour.ImageAlign")));
			this.btnItemHour.ImageIndex = ((int)(resources.GetObject("btnItemHour.ImageIndex")));
			this.btnItemHour.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnItemHour.ImeMode")));
			this.btnItemHour.Location = ((System.Drawing.Point)(resources.GetObject("btnItemHour.Location")));
			this.btnItemHour.Name = "btnItemHour";
			this.btnItemHour.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnItemHour.RightToLeft")));
			this.btnItemHour.Size = ((System.Drawing.Size)(resources.GetObject("btnItemHour.Size")));
			this.btnItemHour.TabIndex = ((int)(resources.GetObject("btnItemHour.TabIndex")));
			this.btnItemHour.Text = resources.GetString("btnItemHour.Text");
			this.btnItemHour.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnItemHour.TextAlign")));
			this.btnItemHour.Visible = ((bool)(resources.GetObject("btnItemHour.Visible")));
			this.btnItemHour.Click += new System.EventHandler(this.btnItemHour_Click);
			// 
			// txtCostDescription
			// 
			this.txtCostDescription.AccessibleDescription = resources.GetString("txtCostDescription.AccessibleDescription");
			this.txtCostDescription.AccessibleName = resources.GetString("txtCostDescription.AccessibleName");
			this.txtCostDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCostDescription.Anchor")));
			this.txtCostDescription.AutoSize = ((bool)(resources.GetObject("txtCostDescription.AutoSize")));
			this.txtCostDescription.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCostDescription.BackgroundImage")));
			this.txtCostDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCostDescription.Dock")));
			this.txtCostDescription.Enabled = ((bool)(resources.GetObject("txtCostDescription.Enabled")));
			this.txtCostDescription.Font = ((System.Drawing.Font)(resources.GetObject("txtCostDescription.Font")));
			this.txtCostDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCostDescription.ImeMode")));
			this.txtCostDescription.Location = ((System.Drawing.Point)(resources.GetObject("txtCostDescription.Location")));
			this.txtCostDescription.MaxLength = ((int)(resources.GetObject("txtCostDescription.MaxLength")));
			this.txtCostDescription.Multiline = ((bool)(resources.GetObject("txtCostDescription.Multiline")));
			this.txtCostDescription.Name = "txtCostDescription";
			this.txtCostDescription.PasswordChar = ((char)(resources.GetObject("txtCostDescription.PasswordChar")));
			this.txtCostDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCostDescription.RightToLeft")));
			this.txtCostDescription.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCostDescription.ScrollBars")));
			this.txtCostDescription.Size = ((System.Drawing.Size)(resources.GetObject("txtCostDescription.Size")));
			this.txtCostDescription.TabIndex = ((int)(resources.GetObject("txtCostDescription.TabIndex")));
			this.txtCostDescription.Text = resources.GetString("txtCostDescription.Text");
			this.txtCostDescription.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCostDescription.TextAlign")));
			this.txtCostDescription.Visible = ((bool)(resources.GetObject("txtCostDescription.Visible")));
			this.txtCostDescription.WordWrap = ((bool)(resources.GetObject("txtCostDescription.WordWrap")));
			this.txtCostDescription.TextChanged += new System.EventHandler(this.txtCostDescription_TextChanged);
			this.txtCostDescription.Leave += new System.EventHandler(this.txtCostDescription_Leave);
			this.txtCostDescription.Enter += new System.EventHandler(this.txtCostDescription_Enter);
			// 
			// lblCostDescription
			// 
			this.lblCostDescription.AccessibleDescription = resources.GetString("lblCostDescription.AccessibleDescription");
			this.lblCostDescription.AccessibleName = resources.GetString("lblCostDescription.AccessibleName");
			this.lblCostDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCostDescription.Anchor")));
			this.lblCostDescription.AutoSize = ((bool)(resources.GetObject("lblCostDescription.AutoSize")));
			this.lblCostDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCostDescription.Dock")));
			this.lblCostDescription.Enabled = ((bool)(resources.GetObject("lblCostDescription.Enabled")));
			this.lblCostDescription.Font = ((System.Drawing.Font)(resources.GetObject("lblCostDescription.Font")));
			this.lblCostDescription.Image = ((System.Drawing.Image)(resources.GetObject("lblCostDescription.Image")));
			this.lblCostDescription.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCostDescription.ImageAlign")));
			this.lblCostDescription.ImageIndex = ((int)(resources.GetObject("lblCostDescription.ImageIndex")));
			this.lblCostDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCostDescription.ImeMode")));
			this.lblCostDescription.Location = ((System.Drawing.Point)(resources.GetObject("lblCostDescription.Location")));
			this.lblCostDescription.Name = "lblCostDescription";
			this.lblCostDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCostDescription.RightToLeft")));
			this.lblCostDescription.Size = ((System.Drawing.Size)(resources.GetObject("lblCostDescription.Size")));
			this.lblCostDescription.TabIndex = ((int)(resources.GetObject("lblCostDescription.TabIndex")));
			this.lblCostDescription.Text = resources.GetString("lblCostDescription.Text");
			this.lblCostDescription.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCostDescription.TextAlign")));
			this.lblCostDescription.Visible = ((bool)(resources.GetObject("lblCostDescription.Visible")));
			// 
			// chkManual
			// 
			this.chkManual.AccessibleDescription = resources.GetString("chkManual.AccessibleDescription");
			this.chkManual.AccessibleName = resources.GetString("chkManual.AccessibleName");
			this.chkManual.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkManual.Anchor")));
			this.chkManual.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkManual.Appearance")));
			this.chkManual.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkManual.BackgroundImage")));
			this.chkManual.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkManual.CheckAlign")));
			this.chkManual.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkManual.Dock")));
			this.chkManual.Enabled = ((bool)(resources.GetObject("chkManual.Enabled")));
			this.chkManual.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkManual.FlatStyle")));
			this.chkManual.Font = ((System.Drawing.Font)(resources.GetObject("chkManual.Font")));
			this.chkManual.Image = ((System.Drawing.Image)(resources.GetObject("chkManual.Image")));
			this.chkManual.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkManual.ImageAlign")));
			this.chkManual.ImageIndex = ((int)(resources.GetObject("chkManual.ImageIndex")));
			this.chkManual.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkManual.ImeMode")));
			this.chkManual.Location = ((System.Drawing.Point)(resources.GetObject("chkManual.Location")));
			this.chkManual.Name = "chkManual";
			this.chkManual.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkManual.RightToLeft")));
			this.chkManual.Size = ((System.Drawing.Size)(resources.GetObject("chkManual.Size")));
			this.chkManual.TabIndex = ((int)(resources.GetObject("chkManual.TabIndex")));
			this.chkManual.Text = resources.GetString("chkManual.Text");
			this.chkManual.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkManual.TextAlign")));
			this.chkManual.Visible = ((bool)(resources.GetObject("chkManual.Visible")));
			this.chkManual.CheckedChanged += new System.EventHandler(this.chkManual_CheckedChanged);
			// 
			// lblDescription
			// 
			this.lblDescription.AccessibleDescription = resources.GetString("lblDescription.AccessibleDescription");
			this.lblDescription.AccessibleName = resources.GetString("lblDescription.AccessibleName");
			this.lblDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblDescription.Anchor")));
			this.lblDescription.AutoSize = ((bool)(resources.GetObject("lblDescription.AutoSize")));
			this.lblDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblDescription.Dock")));
			this.lblDescription.Enabled = ((bool)(resources.GetObject("lblDescription.Enabled")));
			this.lblDescription.Font = ((System.Drawing.Font)(resources.GetObject("lblDescription.Font")));
			this.lblDescription.ForeColor = System.Drawing.Color.Maroon;
			this.lblDescription.Image = ((System.Drawing.Image)(resources.GetObject("lblDescription.Image")));
			this.lblDescription.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblDescription.ImageAlign")));
			this.lblDescription.ImageIndex = ((int)(resources.GetObject("lblDescription.ImageIndex")));
			this.lblDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblDescription.ImeMode")));
			this.lblDescription.Location = ((System.Drawing.Point)(resources.GetObject("lblDescription.Location")));
			this.lblDescription.Name = "lblDescription";
			this.lblDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblDescription.RightToLeft")));
			this.lblDescription.Size = ((System.Drawing.Size)(resources.GetObject("lblDescription.Size")));
			this.lblDescription.TabIndex = ((int)(resources.GetObject("lblDescription.TabIndex")));
			this.lblDescription.Text = resources.GetString("lblDescription.Text");
			this.lblDescription.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblDescription.TextAlign")));
			this.lblDescription.Visible = ((bool)(resources.GetObject("lblDescription.Visible")));
			// 
			// txtDescription
			// 
			this.txtDescription.AccessibleDescription = resources.GetString("txtDescription.AccessibleDescription");
			this.txtDescription.AccessibleName = resources.GetString("txtDescription.AccessibleName");
			this.txtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtDescription.Anchor")));
			this.txtDescription.AutoSize = ((bool)(resources.GetObject("txtDescription.AutoSize")));
			this.txtDescription.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtDescription.BackgroundImage")));
			this.txtDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtDescription.Dock")));
			this.txtDescription.Enabled = ((bool)(resources.GetObject("txtDescription.Enabled")));
			this.txtDescription.Font = ((System.Drawing.Font)(resources.GetObject("txtDescription.Font")));
			this.txtDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtDescription.ImeMode")));
			this.txtDescription.Location = ((System.Drawing.Point)(resources.GetObject("txtDescription.Location")));
			this.txtDescription.MaxLength = ((int)(resources.GetObject("txtDescription.MaxLength")));
			this.txtDescription.Multiline = ((bool)(resources.GetObject("txtDescription.Multiline")));
			this.txtDescription.Name = "txtDescription";
			this.txtDescription.PasswordChar = ((char)(resources.GetObject("txtDescription.PasswordChar")));
			this.txtDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtDescription.RightToLeft")));
			this.txtDescription.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtDescription.ScrollBars")));
			this.txtDescription.Size = ((System.Drawing.Size)(resources.GetObject("txtDescription.Size")));
			this.txtDescription.TabIndex = ((int)(resources.GetObject("txtDescription.TabIndex")));
			this.txtDescription.Text = resources.GetString("txtDescription.Text");
			this.txtDescription.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtDescription.TextAlign")));
			this.txtDescription.Visible = ((bool)(resources.GetObject("txtDescription.Visible")));
			this.txtDescription.WordWrap = ((bool)(resources.GetObject("txtDescription.WordWrap")));
			this.txtDescription.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtDescription_KeyDown);
			this.txtDescription.Leave += new System.EventHandler(this.txtDescription_Leave);
			this.txtDescription.Enter += new System.EventHandler(this.txtDescription_Enter);
			// 
			// btnSearchProductDescription
			// 
			this.btnSearchProductDescription.AccessibleDescription = resources.GetString("btnSearchProductDescription.AccessibleDescription");
			this.btnSearchProductDescription.AccessibleName = resources.GetString("btnSearchProductDescription.AccessibleName");
			this.btnSearchProductDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearchProductDescription.Anchor")));
			this.btnSearchProductDescription.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearchProductDescription.BackgroundImage")));
			this.btnSearchProductDescription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearchProductDescription.Dock")));
			this.btnSearchProductDescription.Enabled = ((bool)(resources.GetObject("btnSearchProductDescription.Enabled")));
			this.btnSearchProductDescription.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearchProductDescription.FlatStyle")));
			this.btnSearchProductDescription.Font = ((System.Drawing.Font)(resources.GetObject("btnSearchProductDescription.Font")));
			this.btnSearchProductDescription.Image = ((System.Drawing.Image)(resources.GetObject("btnSearchProductDescription.Image")));
			this.btnSearchProductDescription.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchProductDescription.ImageAlign")));
			this.btnSearchProductDescription.ImageIndex = ((int)(resources.GetObject("btnSearchProductDescription.ImageIndex")));
			this.btnSearchProductDescription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearchProductDescription.ImeMode")));
			this.btnSearchProductDescription.Location = ((System.Drawing.Point)(resources.GetObject("btnSearchProductDescription.Location")));
			this.btnSearchProductDescription.Name = "btnSearchProductDescription";
			this.btnSearchProductDescription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearchProductDescription.RightToLeft")));
			this.btnSearchProductDescription.Size = ((System.Drawing.Size)(resources.GetObject("btnSearchProductDescription.Size")));
			this.btnSearchProductDescription.TabIndex = ((int)(resources.GetObject("btnSearchProductDescription.TabIndex")));
			this.btnSearchProductDescription.Text = resources.GetString("btnSearchProductDescription.Text");
			this.btnSearchProductDescription.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchProductDescription.TextAlign")));
			this.btnSearchProductDescription.Visible = ((bool)(resources.GetObject("btnSearchProductDescription.Visible")));
			this.btnSearchProductDescription.Click += new System.EventHandler(this.btnSearchProductDescription_Click);
			// 
			// lblItem
			// 
			this.lblItem.AccessibleDescription = resources.GetString("lblItem.AccessibleDescription");
			this.lblItem.AccessibleName = resources.GetString("lblItem.AccessibleName");
			this.lblItem.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblItem.Anchor")));
			this.lblItem.AutoSize = ((bool)(resources.GetObject("lblItem.AutoSize")));
			this.lblItem.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblItem.Dock")));
			this.lblItem.Enabled = ((bool)(resources.GetObject("lblItem.Enabled")));
			this.lblItem.Font = ((System.Drawing.Font)(resources.GetObject("lblItem.Font")));
			this.lblItem.ForeColor = System.Drawing.Color.Maroon;
			this.lblItem.Image = ((System.Drawing.Image)(resources.GetObject("lblItem.Image")));
			this.lblItem.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblItem.ImageAlign")));
			this.lblItem.ImageIndex = ((int)(resources.GetObject("lblItem.ImageIndex")));
			this.lblItem.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblItem.ImeMode")));
			this.lblItem.Location = ((System.Drawing.Point)(resources.GetObject("lblItem.Location")));
			this.lblItem.Name = "lblItem";
			this.lblItem.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblItem.RightToLeft")));
			this.lblItem.Size = ((System.Drawing.Size)(resources.GetObject("lblItem.Size")));
			this.lblItem.TabIndex = ((int)(resources.GetObject("lblItem.TabIndex")));
			this.lblItem.Text = resources.GetString("lblItem.Text");
			this.lblItem.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblItem.TextAlign")));
			this.lblItem.Visible = ((bool)(resources.GetObject("lblItem.Visible")));
			// 
			// txtItem
			// 
			this.txtItem.AccessibleDescription = resources.GetString("txtItem.AccessibleDescription");
			this.txtItem.AccessibleName = resources.GetString("txtItem.AccessibleName");
			this.txtItem.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtItem.Anchor")));
			this.txtItem.AutoSize = ((bool)(resources.GetObject("txtItem.AutoSize")));
			this.txtItem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtItem.BackgroundImage")));
			this.txtItem.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtItem.Dock")));
			this.txtItem.Enabled = ((bool)(resources.GetObject("txtItem.Enabled")));
			this.txtItem.Font = ((System.Drawing.Font)(resources.GetObject("txtItem.Font")));
			this.txtItem.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtItem.ImeMode")));
			this.txtItem.Location = ((System.Drawing.Point)(resources.GetObject("txtItem.Location")));
			this.txtItem.MaxLength = ((int)(resources.GetObject("txtItem.MaxLength")));
			this.txtItem.Multiline = ((bool)(resources.GetObject("txtItem.Multiline")));
			this.txtItem.Name = "txtItem";
			this.txtItem.PasswordChar = ((char)(resources.GetObject("txtItem.PasswordChar")));
			this.txtItem.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtItem.RightToLeft")));
			this.txtItem.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtItem.ScrollBars")));
			this.txtItem.Size = ((System.Drawing.Size)(resources.GetObject("txtItem.Size")));
			this.txtItem.TabIndex = ((int)(resources.GetObject("txtItem.TabIndex")));
			this.txtItem.Text = resources.GetString("txtItem.Text");
			this.txtItem.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtItem.TextAlign")));
			this.txtItem.Visible = ((bool)(resources.GetObject("txtItem.Visible")));
			this.txtItem.WordWrap = ((bool)(resources.GetObject("txtItem.WordWrap")));
			this.txtItem.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtItem_KeyDown);
			this.txtItem.Leave += new System.EventHandler(this.txtItem_Leave);
			this.txtItem.Enter += new System.EventHandler(this.txtItem_Enter);
			// 
			// lblRev
			// 
			this.lblRev.AccessibleDescription = resources.GetString("lblRev.AccessibleDescription");
			this.lblRev.AccessibleName = resources.GetString("lblRev.AccessibleName");
			this.lblRev.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblRev.Anchor")));
			this.lblRev.AutoSize = ((bool)(resources.GetObject("lblRev.AutoSize")));
			this.lblRev.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblRev.Dock")));
			this.lblRev.Enabled = ((bool)(resources.GetObject("lblRev.Enabled")));
			this.lblRev.Font = ((System.Drawing.Font)(resources.GetObject("lblRev.Font")));
			this.lblRev.Image = ((System.Drawing.Image)(resources.GetObject("lblRev.Image")));
			this.lblRev.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblRev.ImageAlign")));
			this.lblRev.ImageIndex = ((int)(resources.GetObject("lblRev.ImageIndex")));
			this.lblRev.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblRev.ImeMode")));
			this.lblRev.Location = ((System.Drawing.Point)(resources.GetObject("lblRev.Location")));
			this.lblRev.Name = "lblRev";
			this.lblRev.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblRev.RightToLeft")));
			this.lblRev.Size = ((System.Drawing.Size)(resources.GetObject("lblRev.Size")));
			this.lblRev.TabIndex = ((int)(resources.GetObject("lblRev.TabIndex")));
			this.lblRev.Text = resources.GetString("lblRev.Text");
			this.lblRev.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblRev.TextAlign")));
			this.lblRev.Visible = ((bool)(resources.GetObject("lblRev.Visible")));
			// 
			// lblSetupDate
			// 
			this.lblSetupDate.AccessibleDescription = resources.GetString("lblSetupDate.AccessibleDescription");
			this.lblSetupDate.AccessibleName = resources.GetString("lblSetupDate.AccessibleName");
			this.lblSetupDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblSetupDate.Anchor")));
			this.lblSetupDate.AutoSize = ((bool)(resources.GetObject("lblSetupDate.AutoSize")));
			this.lblSetupDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblSetupDate.Dock")));
			this.lblSetupDate.Enabled = ((bool)(resources.GetObject("lblSetupDate.Enabled")));
			this.lblSetupDate.Font = ((System.Drawing.Font)(resources.GetObject("lblSetupDate.Font")));
			this.lblSetupDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblSetupDate.Image = ((System.Drawing.Image)(resources.GetObject("lblSetupDate.Image")));
			this.lblSetupDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblSetupDate.ImageAlign")));
			this.lblSetupDate.ImageIndex = ((int)(resources.GetObject("lblSetupDate.ImageIndex")));
			this.lblSetupDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblSetupDate.ImeMode")));
			this.lblSetupDate.Location = ((System.Drawing.Point)(resources.GetObject("lblSetupDate.Location")));
			this.lblSetupDate.Name = "lblSetupDate";
			this.lblSetupDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblSetupDate.RightToLeft")));
			this.lblSetupDate.Size = ((System.Drawing.Size)(resources.GetObject("lblSetupDate.Size")));
			this.lblSetupDate.TabIndex = ((int)(resources.GetObject("lblSetupDate.TabIndex")));
			this.lblSetupDate.Text = resources.GetString("lblSetupDate.Text");
			this.lblSetupDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblSetupDate.TextAlign")));
			this.lblSetupDate.Visible = ((bool)(resources.GetObject("lblSetupDate.Visible")));
			// 
			// btnSearchProductCode
			// 
			this.btnSearchProductCode.AccessibleDescription = resources.GetString("btnSearchProductCode.AccessibleDescription");
			this.btnSearchProductCode.AccessibleName = resources.GetString("btnSearchProductCode.AccessibleName");
			this.btnSearchProductCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSearchProductCode.Anchor")));
			this.btnSearchProductCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearchProductCode.BackgroundImage")));
			this.btnSearchProductCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSearchProductCode.Dock")));
			this.btnSearchProductCode.Enabled = ((bool)(resources.GetObject("btnSearchProductCode.Enabled")));
			this.btnSearchProductCode.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSearchProductCode.FlatStyle")));
			this.btnSearchProductCode.Font = ((System.Drawing.Font)(resources.GetObject("btnSearchProductCode.Font")));
			this.btnSearchProductCode.Image = ((System.Drawing.Image)(resources.GetObject("btnSearchProductCode.Image")));
			this.btnSearchProductCode.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchProductCode.ImageAlign")));
			this.btnSearchProductCode.ImageIndex = ((int)(resources.GetObject("btnSearchProductCode.ImageIndex")));
			this.btnSearchProductCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSearchProductCode.ImeMode")));
			this.btnSearchProductCode.Location = ((System.Drawing.Point)(resources.GetObject("btnSearchProductCode.Location")));
			this.btnSearchProductCode.Name = "btnSearchProductCode";
			this.btnSearchProductCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSearchProductCode.RightToLeft")));
			this.btnSearchProductCode.Size = ((System.Drawing.Size)(resources.GetObject("btnSearchProductCode.Size")));
			this.btnSearchProductCode.TabIndex = ((int)(resources.GetObject("btnSearchProductCode.TabIndex")));
			this.btnSearchProductCode.Text = resources.GetString("btnSearchProductCode.Text");
			this.btnSearchProductCode.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSearchProductCode.TextAlign")));
			this.btnSearchProductCode.Visible = ((bool)(resources.GetObject("btnSearchProductCode.Visible")));
			this.btnSearchProductCode.Click += new System.EventHandler(this.btnSearchProductCode_Click);
			// 
			// lblCCN
			// 
			this.lblCCN.AccessibleDescription = resources.GetString("lblCCN.AccessibleDescription");
			this.lblCCN.AccessibleName = resources.GetString("lblCCN.AccessibleName");
			this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCCN.Anchor")));
			this.lblCCN.AutoSize = ((bool)(resources.GetObject("lblCCN.AutoSize")));
			this.lblCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCCN.Dock")));
			this.lblCCN.Enabled = ((bool)(resources.GetObject("lblCCN.Enabled")));
			this.lblCCN.Font = ((System.Drawing.Font)(resources.GetObject("lblCCN.Font")));
			this.lblCCN.ForeColor = System.Drawing.Color.Maroon;
			this.lblCCN.Image = ((System.Drawing.Image)(resources.GetObject("lblCCN.Image")));
			this.lblCCN.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.ImageAlign")));
			this.lblCCN.ImageIndex = ((int)(resources.GetObject("lblCCN.ImageIndex")));
			this.lblCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCCN.ImeMode")));
			this.lblCCN.Location = ((System.Drawing.Point)(resources.GetObject("lblCCN.Location")));
			this.lblCCN.Name = "lblCCN";
			this.lblCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCCN.RightToLeft")));
			this.lblCCN.Size = ((System.Drawing.Size)(resources.GetObject("lblCCN.Size")));
			this.lblCCN.TabIndex = ((int)(resources.GetObject("lblCCN.TabIndex")));
			this.lblCCN.Text = resources.GetString("lblCCN.Text");
			this.lblCCN.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.TextAlign")));
			this.lblCCN.Visible = ((bool)(resources.GetObject("lblCCN.Visible")));
			// 
			// lblUM1
			// 
			this.lblUM1.AccessibleDescription = resources.GetString("lblUM1.AccessibleDescription");
			this.lblUM1.AccessibleName = resources.GetString("lblUM1.AccessibleName");
			this.lblUM1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblUM1.Anchor")));
			this.lblUM1.AutoSize = ((bool)(resources.GetObject("lblUM1.AutoSize")));
			this.lblUM1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblUM1.Dock")));
			this.lblUM1.Enabled = ((bool)(resources.GetObject("lblUM1.Enabled")));
			this.lblUM1.Font = ((System.Drawing.Font)(resources.GetObject("lblUM1.Font")));
			this.lblUM1.Image = ((System.Drawing.Image)(resources.GetObject("lblUM1.Image")));
			this.lblUM1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblUM1.ImageAlign")));
			this.lblUM1.ImageIndex = ((int)(resources.GetObject("lblUM1.ImageIndex")));
			this.lblUM1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblUM1.ImeMode")));
			this.lblUM1.Location = ((System.Drawing.Point)(resources.GetObject("lblUM1.Location")));
			this.lblUM1.Name = "lblUM1";
			this.lblUM1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblUM1.RightToLeft")));
			this.lblUM1.Size = ((System.Drawing.Size)(resources.GetObject("lblUM1.Size")));
			this.lblUM1.TabIndex = ((int)(resources.GetObject("lblUM1.TabIndex")));
			this.lblUM1.Text = resources.GetString("lblUM1.Text");
			this.lblUM1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblUM1.TextAlign")));
			this.lblUM1.Visible = ((bool)(resources.GetObject("lblUM1.Visible")));
			// 
			// btnCostDetail
			// 
			this.btnCostDetail.AccessibleDescription = resources.GetString("btnCostDetail.AccessibleDescription");
			this.btnCostDetail.AccessibleName = resources.GetString("btnCostDetail.AccessibleName");
			this.btnCostDetail.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCostDetail.Anchor")));
			this.btnCostDetail.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCostDetail.BackgroundImage")));
			this.btnCostDetail.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCostDetail.Dock")));
			this.btnCostDetail.Enabled = ((bool)(resources.GetObject("btnCostDetail.Enabled")));
			this.btnCostDetail.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCostDetail.FlatStyle")));
			this.btnCostDetail.Font = ((System.Drawing.Font)(resources.GetObject("btnCostDetail.Font")));
			this.btnCostDetail.Image = ((System.Drawing.Image)(resources.GetObject("btnCostDetail.Image")));
			this.btnCostDetail.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCostDetail.ImageAlign")));
			this.btnCostDetail.ImageIndex = ((int)(resources.GetObject("btnCostDetail.ImageIndex")));
			this.btnCostDetail.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCostDetail.ImeMode")));
			this.btnCostDetail.Location = ((System.Drawing.Point)(resources.GetObject("btnCostDetail.Location")));
			this.btnCostDetail.Name = "btnCostDetail";
			this.btnCostDetail.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCostDetail.RightToLeft")));
			this.btnCostDetail.Size = ((System.Drawing.Size)(resources.GetObject("btnCostDetail.Size")));
			this.btnCostDetail.TabIndex = ((int)(resources.GetObject("btnCostDetail.TabIndex")));
			this.btnCostDetail.Text = resources.GetString("btnCostDetail.Text");
			this.btnCostDetail.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCostDetail.TextAlign")));
			this.btnCostDetail.Visible = ((bool)(resources.GetObject("btnCostDetail.Visible")));
			this.btnCostDetail.Click += new System.EventHandler(this.btnCostDetail_Click);
			// 
			// tgridViewData
			// 
			this.tgridViewData.AccessibleDescription = resources.GetString("tgridViewData.AccessibleDescription");
			this.tgridViewData.AccessibleName = resources.GetString("tgridViewData.AccessibleName");
			this.tgridViewData.AllowAddNew = ((bool)(resources.GetObject("tgridViewData.AllowAddNew")));
			this.tgridViewData.AllowArrows = ((bool)(resources.GetObject("tgridViewData.AllowArrows")));
			this.tgridViewData.AllowColMove = ((bool)(resources.GetObject("tgridViewData.AllowColMove")));
			this.tgridViewData.AllowColSelect = ((bool)(resources.GetObject("tgridViewData.AllowColSelect")));
			this.tgridViewData.AllowDelete = ((bool)(resources.GetObject("tgridViewData.AllowDelete")));
			this.tgridViewData.AllowDrag = ((bool)(resources.GetObject("tgridViewData.AllowDrag")));
			this.tgridViewData.AllowFilter = ((bool)(resources.GetObject("tgridViewData.AllowFilter")));
			this.tgridViewData.AllowHorizontalSplit = ((bool)(resources.GetObject("tgridViewData.AllowHorizontalSplit")));
			this.tgridViewData.AllowRowSelect = ((bool)(resources.GetObject("tgridViewData.AllowRowSelect")));
			this.tgridViewData.AllowSort = ((bool)(resources.GetObject("tgridViewData.AllowSort")));
			this.tgridViewData.AllowUpdate = ((bool)(resources.GetObject("tgridViewData.AllowUpdate")));
			this.tgridViewData.AllowUpdateOnBlur = ((bool)(resources.GetObject("tgridViewData.AllowUpdateOnBlur")));
			this.tgridViewData.AllowVerticalSplit = ((bool)(resources.GetObject("tgridViewData.AllowVerticalSplit")));
			this.tgridViewData.AlternatingRows = ((bool)(resources.GetObject("tgridViewData.AlternatingRows")));
			this.tgridViewData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("tgridViewData.Anchor")));
			this.tgridViewData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("tgridViewData.BackgroundImage")));
			this.tgridViewData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("tgridViewData.BorderStyle")));
			this.tgridViewData.Caption = resources.GetString("tgridViewData.Caption");
			this.tgridViewData.CaptionHeight = ((int)(resources.GetObject("tgridViewData.CaptionHeight")));
			this.tgridViewData.CellTipsDelay = ((int)(resources.GetObject("tgridViewData.CellTipsDelay")));
			this.tgridViewData.CellTipsWidth = ((int)(resources.GetObject("tgridViewData.CellTipsWidth")));
			this.tgridViewData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("tgridViewData.ChildGrid")));
			this.tgridViewData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("tgridViewData.CollapseColor")));
			this.tgridViewData.ColumnFooters = ((bool)(resources.GetObject("tgridViewData.ColumnFooters")));
			this.tgridViewData.ColumnHeaders = ((bool)(resources.GetObject("tgridViewData.ColumnHeaders")));
			this.tgridViewData.DefColWidth = ((int)(resources.GetObject("tgridViewData.DefColWidth")));
			this.tgridViewData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("tgridViewData.Dock")));
			this.tgridViewData.EditDropDown = ((bool)(resources.GetObject("tgridViewData.EditDropDown")));
			this.tgridViewData.EmptyRows = ((bool)(resources.GetObject("tgridViewData.EmptyRows")));
			this.tgridViewData.Enabled = ((bool)(resources.GetObject("tgridViewData.Enabled")));
			this.tgridViewData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("tgridViewData.ExpandColor")));
			this.tgridViewData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("tgridViewData.ExposeCellMode")));
			this.tgridViewData.ExtendRightColumn = ((bool)(resources.GetObject("tgridViewData.ExtendRightColumn")));
			this.tgridViewData.FetchRowStyles = ((bool)(resources.GetObject("tgridViewData.FetchRowStyles")));
			this.tgridViewData.FilterBar = ((bool)(resources.GetObject("tgridViewData.FilterBar")));
			this.tgridViewData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("tgridViewData.FlatStyle")));
			this.tgridViewData.Font = ((System.Drawing.Font)(resources.GetObject("tgridViewData.Font")));
			this.tgridViewData.GroupByAreaVisible = ((bool)(resources.GetObject("tgridViewData.GroupByAreaVisible")));
			this.tgridViewData.GroupByCaption = resources.GetString("tgridViewData.GroupByCaption");
			this.tgridViewData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.tgridViewData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("tgridViewData.ImeMode")));
			this.tgridViewData.LinesPerRow = ((int)(resources.GetObject("tgridViewData.LinesPerRow")));
			this.tgridViewData.Location = ((System.Drawing.Point)(resources.GetObject("tgridViewData.Location")));
			this.tgridViewData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.tgridViewData.Name = "tgridViewData";
			this.tgridViewData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("tgridViewData.PictureAddnewRow")));
			this.tgridViewData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("tgridViewData.PictureCurrentRow")));
			this.tgridViewData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("tgridViewData.PictureFilterBar")));
			this.tgridViewData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("tgridViewData.PictureFooterRow")));
			this.tgridViewData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("tgridViewData.PictureHeaderRow")));
			this.tgridViewData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("tgridViewData.PictureModifiedRow")));
			this.tgridViewData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("tgridViewData.PictureStandardRow")));
			this.tgridViewData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("tgridViewData.PreviewInfo.AllowSizing")));
			this.tgridViewData.PreviewInfo.Caption = resources.GetString("tgridViewData.PreviewInfo.Caption");
			this.tgridViewData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("tgridViewData.PreviewInfo.Location")));
			this.tgridViewData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("tgridViewData.PreviewInfo.Size")));
			this.tgridViewData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("tgridViewData.PreviewInfo.ToolBars")));
			this.tgridViewData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("tgridViewData.PreviewInfo.UIStrings.Content")));
			this.tgridViewData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("tgridViewData.PreviewInfo.ZoomFactor")));
			this.tgridViewData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("tgridViewData.PrintInfo.MaxRowHeight")));
			this.tgridViewData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("tgridViewData.PrintInfo.OwnerDrawPageFooter")));
			this.tgridViewData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("tgridViewData.PrintInfo.OwnerDrawPageHeader")));
			this.tgridViewData.PrintInfo.PageFooter = resources.GetString("tgridViewData.PrintInfo.PageFooter");
			this.tgridViewData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("tgridViewData.PrintInfo.PageFooterHeight")));
			this.tgridViewData.PrintInfo.PageHeader = resources.GetString("tgridViewData.PrintInfo.PageHeader");
			this.tgridViewData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("tgridViewData.PrintInfo.PageHeaderHeight")));
			this.tgridViewData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("tgridViewData.PrintInfo.PrintHorizontalSplits")));
			this.tgridViewData.PrintInfo.ProgressCaption = resources.GetString("tgridViewData.PrintInfo.ProgressCaption");
			this.tgridViewData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("tgridViewData.PrintInfo.RepeatColumnFooters")));
			this.tgridViewData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("tgridViewData.PrintInfo.RepeatColumnHeaders")));
			this.tgridViewData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("tgridViewData.PrintInfo.RepeatGridHeader")));
			this.tgridViewData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("tgridViewData.PrintInfo.RepeatSplitHeaders")));
			this.tgridViewData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("tgridViewData.PrintInfo.ShowOptionsDialog")));
			this.tgridViewData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("tgridViewData.PrintInfo.ShowProgressForm")));
			this.tgridViewData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("tgridViewData.PrintInfo.ShowSelection")));
			this.tgridViewData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("tgridViewData.PrintInfo.UseGridColors")));
			this.tgridViewData.RecordSelectors = ((bool)(resources.GetObject("tgridViewData.RecordSelectors")));
			this.tgridViewData.RecordSelectorWidth = ((int)(resources.GetObject("tgridViewData.RecordSelectorWidth")));
			this.tgridViewData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("tgridViewData.RightToLeft")));
			this.tgridViewData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.tgridViewData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.tgridViewData.RowHeight = ((int)(resources.GetObject("tgridViewData.RowHeight")));
			this.tgridViewData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("tgridViewData.RowSubDividerColor")));
			this.tgridViewData.ScrollTips = ((bool)(resources.GetObject("tgridViewData.ScrollTips")));
			this.tgridViewData.ScrollTrack = ((bool)(resources.GetObject("tgridViewData.ScrollTrack")));
			this.tgridViewData.Size = ((System.Drawing.Size)(resources.GetObject("tgridViewData.Size")));
			this.tgridViewData.SpringMode = ((bool)(resources.GetObject("tgridViewData.SpringMode")));
			this.tgridViewData.TabAcrossSplits = ((bool)(resources.GetObject("tgridViewData.TabAcrossSplits")));
			this.tgridViewData.TabIndex = ((int)(resources.GetObject("tgridViewData.TabIndex")));
			this.tgridViewData.Text = resources.GetString("tgridViewData.Text");
			this.tgridViewData.ViewCaptionWidth = ((int)(resources.GetObject("tgridViewData.ViewCaptionWidth")));
			this.tgridViewData.ViewColumnWidth = ((int)(resources.GetObject("tgridViewData.ViewColumnWidth")));
			this.tgridViewData.Visible = ((bool)(resources.GetObject("tgridViewData.Visible")));
			this.tgridViewData.WrapCellPointer = ((bool)(resources.GetObject("tgridViewData.WrapCellPointer")));
			this.tgridViewData.ButtonClick += new C1.Win.C1TrueDBGrid.ColEventHandler(this.tgridViewData_ButtonClick);
			this.tgridViewData.PropBag = resources.GetString("tgridViewData.PropBag");
			// 
			// chkMake
			// 
			this.chkMake.AccessibleDescription = resources.GetString("chkMake.AccessibleDescription");
			this.chkMake.AccessibleName = resources.GetString("chkMake.AccessibleName");
			this.chkMake.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("chkMake.Anchor")));
			this.chkMake.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("chkMake.Appearance")));
			this.chkMake.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("chkMake.BackgroundImage")));
			this.chkMake.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkMake.CheckAlign")));
			this.chkMake.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("chkMake.Dock")));
			this.chkMake.Enabled = ((bool)(resources.GetObject("chkMake.Enabled")));
			this.chkMake.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("chkMake.FlatStyle")));
			this.chkMake.Font = ((System.Drawing.Font)(resources.GetObject("chkMake.Font")));
			this.chkMake.Image = ((System.Drawing.Image)(resources.GetObject("chkMake.Image")));
			this.chkMake.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkMake.ImageAlign")));
			this.chkMake.ImageIndex = ((int)(resources.GetObject("chkMake.ImageIndex")));
			this.chkMake.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("chkMake.ImeMode")));
			this.chkMake.Location = ((System.Drawing.Point)(resources.GetObject("chkMake.Location")));
			this.chkMake.Name = "chkMake";
			this.chkMake.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("chkMake.RightToLeft")));
			this.chkMake.Size = ((System.Drawing.Size)(resources.GetObject("chkMake.Size")));
			this.chkMake.TabIndex = ((int)(resources.GetObject("chkMake.TabIndex")));
			this.chkMake.Text = resources.GetString("chkMake.Text");
			this.chkMake.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("chkMake.TextAlign")));
			this.chkMake.Visible = ((bool)(resources.GetObject("chkMake.Visible")));
			// 
			// lblMaterialCC
			// 
			this.lblMaterialCC.AccessibleDescription = resources.GetString("lblMaterialCC.AccessibleDescription");
			this.lblMaterialCC.AccessibleName = resources.GetString("lblMaterialCC.AccessibleName");
			this.lblMaterialCC.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblMaterialCC.Anchor")));
			this.lblMaterialCC.AutoSize = ((bool)(resources.GetObject("lblMaterialCC.AutoSize")));
			this.lblMaterialCC.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblMaterialCC.Dock")));
			this.lblMaterialCC.Enabled = ((bool)(resources.GetObject("lblMaterialCC.Enabled")));
			this.lblMaterialCC.Font = ((System.Drawing.Font)(resources.GetObject("lblMaterialCC.Font")));
			this.lblMaterialCC.Image = ((System.Drawing.Image)(resources.GetObject("lblMaterialCC.Image")));
			this.lblMaterialCC.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMaterialCC.ImageAlign")));
			this.lblMaterialCC.ImageIndex = ((int)(resources.GetObject("lblMaterialCC.ImageIndex")));
			this.lblMaterialCC.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblMaterialCC.ImeMode")));
			this.lblMaterialCC.Location = ((System.Drawing.Point)(resources.GetObject("lblMaterialCC.Location")));
			this.lblMaterialCC.Name = "lblMaterialCC";
			this.lblMaterialCC.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblMaterialCC.RightToLeft")));
			this.lblMaterialCC.Size = ((System.Drawing.Size)(resources.GetObject("lblMaterialCC.Size")));
			this.lblMaterialCC.TabIndex = ((int)(resources.GetObject("lblMaterialCC.TabIndex")));
			this.lblMaterialCC.Text = resources.GetString("lblMaterialCC.Text");
			this.lblMaterialCC.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMaterialCC.TextAlign")));
			this.lblMaterialCC.Visible = ((bool)(resources.GetObject("lblMaterialCC.Visible")));
			// 
			// dtmSetupDate
			// 
			this.dtmSetupDate.AcceptsEscape = ((bool)(resources.GetObject("dtmSetupDate.AcceptsEscape")));
			this.dtmSetupDate.AccessibleDescription = resources.GetString("dtmSetupDate.AccessibleDescription");
			this.dtmSetupDate.AccessibleName = resources.GetString("dtmSetupDate.AccessibleName");
			this.dtmSetupDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmSetupDate.Anchor")));
			this.dtmSetupDate.AutoSize = ((bool)(resources.GetObject("dtmSetupDate.AutoSize")));
			this.dtmSetupDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmSetupDate.BackgroundImage")));
			this.dtmSetupDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmSetupDate.BorderStyle")));
			// 
			// dtmSetupDate.Calendar
			// 
			this.dtmSetupDate.Calendar.AccessibleDescription = resources.GetString("dtmSetupDate.Calendar.AccessibleDescription");
			this.dtmSetupDate.Calendar.AccessibleName = resources.GetString("dtmSetupDate.Calendar.AccessibleName");
			this.dtmSetupDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmSetupDate.Calendar.AnnuallyBoldedDates")));
			this.dtmSetupDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmSetupDate.Calendar.BackgroundImage")));
			this.dtmSetupDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmSetupDate.Calendar.BoldedDates")));
			this.dtmSetupDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmSetupDate.Calendar.CalendarDimensions")));
			this.dtmSetupDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmSetupDate.Calendar.Enabled")));
			this.dtmSetupDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmSetupDate.Calendar.FirstDayOfWeek")));
			this.dtmSetupDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmSetupDate.Calendar.Font")));
			this.dtmSetupDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmSetupDate.Calendar.ImeMode")));
			this.dtmSetupDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmSetupDate.Calendar.MonthlyBoldedDates")));
			this.dtmSetupDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmSetupDate.Calendar.RightToLeft")));
			this.dtmSetupDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmSetupDate.Calendar.ShowClearButton")));
			this.dtmSetupDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmSetupDate.Calendar.ShowTodayButton")));
			this.dtmSetupDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmSetupDate.Calendar.ShowWeekNumbers")));
			this.dtmSetupDate.CaseSensitive = ((bool)(resources.GetObject("dtmSetupDate.CaseSensitive")));
			this.dtmSetupDate.Culture = ((int)(resources.GetObject("dtmSetupDate.Culture")));
			this.dtmSetupDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmSetupDate.CurrentTimeZone")));
			this.dtmSetupDate.CustomFormat = resources.GetString("dtmSetupDate.CustomFormat");
			this.dtmSetupDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmSetupDate.DaylightTimeAdjustment")));
			this.dtmSetupDate.DisplayFormat.CustomFormat = resources.GetString("dtmSetupDate.DisplayFormat.CustomFormat");
			this.dtmSetupDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmSetupDate.DisplayFormat.FormatType")));
			this.dtmSetupDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmSetupDate.DisplayFormat.Inherit")));
			this.dtmSetupDate.DisplayFormat.NullText = resources.GetString("dtmSetupDate.DisplayFormat.NullText");
			this.dtmSetupDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmSetupDate.DisplayFormat.TrimEnd")));
			this.dtmSetupDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmSetupDate.DisplayFormat.TrimStart")));
			this.dtmSetupDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmSetupDate.Dock")));
			this.dtmSetupDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmSetupDate.DropDownFormAlign")));
			this.dtmSetupDate.EditFormat.CustomFormat = resources.GetString("dtmSetupDate.EditFormat.CustomFormat");
			this.dtmSetupDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmSetupDate.EditFormat.FormatType")));
			this.dtmSetupDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmSetupDate.EditFormat.Inherit")));
			this.dtmSetupDate.EditFormat.NullText = resources.GetString("dtmSetupDate.EditFormat.NullText");
			this.dtmSetupDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmSetupDate.EditFormat.TrimEnd")));
			this.dtmSetupDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmSetupDate.EditFormat.TrimStart")));
			this.dtmSetupDate.EditMask = resources.GetString("dtmSetupDate.EditMask");
			this.dtmSetupDate.EmptyAsNull = ((bool)(resources.GetObject("dtmSetupDate.EmptyAsNull")));
			this.dtmSetupDate.Enabled = ((bool)(resources.GetObject("dtmSetupDate.Enabled")));
			this.dtmSetupDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmSetupDate.ErrorInfo.BeepOnError")));
			this.dtmSetupDate.ErrorInfo.ErrorMessage = resources.GetString("dtmSetupDate.ErrorInfo.ErrorMessage");
			this.dtmSetupDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmSetupDate.ErrorInfo.ErrorMessageCaption");
			this.dtmSetupDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmSetupDate.ErrorInfo.ShowErrorMessage")));
			this.dtmSetupDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmSetupDate.ErrorInfo.ValueOnError")));
			this.dtmSetupDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmSetupDate.Font")));
			this.dtmSetupDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmSetupDate.FormatType")));
			this.dtmSetupDate.GapHeight = ((int)(resources.GetObject("dtmSetupDate.GapHeight")));
			this.dtmSetupDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmSetupDate.GMTOffset")));
			this.dtmSetupDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmSetupDate.ImeMode")));
			this.dtmSetupDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmSetupDate.InitialSelection")));
			this.dtmSetupDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmSetupDate.Location")));
			this.dtmSetupDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmSetupDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmSetupDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmSetupDate.MaskInfo.CaseSensitive")));
			this.dtmSetupDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmSetupDate.MaskInfo.CopyWithLiterals")));
			this.dtmSetupDate.MaskInfo.EditMask = resources.GetString("dtmSetupDate.MaskInfo.EditMask");
			this.dtmSetupDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmSetupDate.MaskInfo.EmptyAsNull")));
			this.dtmSetupDate.MaskInfo.ErrorMessage = resources.GetString("dtmSetupDate.MaskInfo.ErrorMessage");
			this.dtmSetupDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmSetupDate.MaskInfo.Inherit")));
			this.dtmSetupDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmSetupDate.MaskInfo.PromptChar")));
			this.dtmSetupDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmSetupDate.MaskInfo.ShowLiterals")));
			this.dtmSetupDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmSetupDate.MaskInfo.StoredEmptyChar")));
			this.dtmSetupDate.MaxLength = ((int)(resources.GetObject("dtmSetupDate.MaxLength")));
			this.dtmSetupDate.Name = "dtmSetupDate";
			this.dtmSetupDate.NullText = resources.GetString("dtmSetupDate.NullText");
			this.dtmSetupDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmSetupDate.ParseInfo.CaseSensitive")));
			this.dtmSetupDate.ParseInfo.CustomFormat = resources.GetString("dtmSetupDate.ParseInfo.CustomFormat");
			this.dtmSetupDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmSetupDate.ParseInfo.DateTimeStyle")));
			this.dtmSetupDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmSetupDate.ParseInfo.EmptyAsNull")));
			this.dtmSetupDate.ParseInfo.ErrorMessage = resources.GetString("dtmSetupDate.ParseInfo.ErrorMessage");
			this.dtmSetupDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmSetupDate.ParseInfo.FormatType")));
			this.dtmSetupDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmSetupDate.ParseInfo.Inherit")));
			this.dtmSetupDate.ParseInfo.NullText = resources.GetString("dtmSetupDate.ParseInfo.NullText");
			this.dtmSetupDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmSetupDate.ParseInfo.TrimEnd")));
			this.dtmSetupDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmSetupDate.ParseInfo.TrimStart")));
			this.dtmSetupDate.PasswordChar = ((char)(resources.GetObject("dtmSetupDate.PasswordChar")));
			this.dtmSetupDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmSetupDate.PostValidation.CaseSensitive")));
			this.dtmSetupDate.PostValidation.ErrorMessage = resources.GetString("dtmSetupDate.PostValidation.ErrorMessage");
			this.dtmSetupDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmSetupDate.PostValidation.Inherit")));
			this.dtmSetupDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmSetupDate.PostValidation.Validation")));
			this.dtmSetupDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmSetupDate.PostValidation.Values")));
			this.dtmSetupDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmSetupDate.PostValidation.ValuesExcluded")));
			this.dtmSetupDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmSetupDate.PreValidation.CaseSensitive")));
			this.dtmSetupDate.PreValidation.ErrorMessage = resources.GetString("dtmSetupDate.PreValidation.ErrorMessage");
			this.dtmSetupDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmSetupDate.PreValidation.Inherit")));
			this.dtmSetupDate.PreValidation.ItemSeparator = resources.GetString("dtmSetupDate.PreValidation.ItemSeparator");
			this.dtmSetupDate.PreValidation.PatternString = resources.GetString("dtmSetupDate.PreValidation.PatternString");
			this.dtmSetupDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmSetupDate.PreValidation.RegexOptions")));
			this.dtmSetupDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmSetupDate.PreValidation.TrimEnd")));
			this.dtmSetupDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmSetupDate.PreValidation.TrimStart")));
			this.dtmSetupDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmSetupDate.PreValidation.Validation")));
			this.dtmSetupDate.ReadOnly = true;
			this.dtmSetupDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmSetupDate.RightToLeft")));
			this.dtmSetupDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmSetupDate.ShowFocusRectangle")));
			this.dtmSetupDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmSetupDate.Size")));
			this.dtmSetupDate.TabIndex = ((int)(resources.GetObject("dtmSetupDate.TabIndex")));
			this.dtmSetupDate.Tag = ((object)(resources.GetObject("dtmSetupDate.Tag")));
			this.dtmSetupDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmSetupDate.TextAlign")));
			this.dtmSetupDate.TrimEnd = ((bool)(resources.GetObject("dtmSetupDate.TrimEnd")));
			this.dtmSetupDate.TrimStart = ((bool)(resources.GetObject("dtmSetupDate.TrimStart")));
			this.dtmSetupDate.UserCultureOverride = ((bool)(resources.GetObject("dtmSetupDate.UserCultureOverride")));
			this.dtmSetupDate.Value = ((object)(resources.GetObject("dtmSetupDate.Value")));
			this.dtmSetupDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmSetupDate.VerticalAlign")));
			this.dtmSetupDate.Visible = ((bool)(resources.GetObject("dtmSetupDate.Visible")));
			this.dtmSetupDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmSetupDate.VisibleButtons")));
			this.dtmSetupDate.Enter += new System.EventHandler(this.dtmSetupDate_Enter);
			this.dtmSetupDate.Leave += new System.EventHandler(this.dtmSetupDate_Leave);
			// 
			// txtMaterialCC
			// 
			this.txtMaterialCC.AccessibleDescription = resources.GetString("txtMaterialCC.AccessibleDescription");
			this.txtMaterialCC.AccessibleName = resources.GetString("txtMaterialCC.AccessibleName");
			this.txtMaterialCC.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtMaterialCC.Anchor")));
			this.txtMaterialCC.AutoSize = ((bool)(resources.GetObject("txtMaterialCC.AutoSize")));
			this.txtMaterialCC.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtMaterialCC.BackgroundImage")));
			this.txtMaterialCC.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtMaterialCC.Dock")));
			this.txtMaterialCC.Enabled = ((bool)(resources.GetObject("txtMaterialCC.Enabled")));
			this.txtMaterialCC.Font = ((System.Drawing.Font)(resources.GetObject("txtMaterialCC.Font")));
			this.txtMaterialCC.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtMaterialCC.ImeMode")));
			this.txtMaterialCC.Location = ((System.Drawing.Point)(resources.GetObject("txtMaterialCC.Location")));
			this.txtMaterialCC.MaxLength = ((int)(resources.GetObject("txtMaterialCC.MaxLength")));
			this.txtMaterialCC.Multiline = ((bool)(resources.GetObject("txtMaterialCC.Multiline")));
			this.txtMaterialCC.Name = "txtMaterialCC";
			this.txtMaterialCC.PasswordChar = ((char)(resources.GetObject("txtMaterialCC.PasswordChar")));
			this.txtMaterialCC.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtMaterialCC.RightToLeft")));
			this.txtMaterialCC.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtMaterialCC.ScrollBars")));
			this.txtMaterialCC.Size = ((System.Drawing.Size)(resources.GetObject("txtMaterialCC.Size")));
			this.txtMaterialCC.TabIndex = ((int)(resources.GetObject("txtMaterialCC.TabIndex")));
			this.txtMaterialCC.Text = resources.GetString("txtMaterialCC.Text");
			this.txtMaterialCC.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtMaterialCC.TextAlign")));
			this.txtMaterialCC.Visible = ((bool)(resources.GetObject("txtMaterialCC.Visible")));
			this.txtMaterialCC.WordWrap = ((bool)(resources.GetObject("txtMaterialCC.WordWrap")));
			this.txtMaterialCC.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMaterialCC_KeyDown);
			this.txtMaterialCC.Leave += new System.EventHandler(this.txtMaterialCC_Leave);
			this.txtMaterialCC.Enter += new System.EventHandler(this.txtMaterialCC_Enter);
			// 
			// btnMaterialCC
			// 
			this.btnMaterialCC.AccessibleDescription = resources.GetString("btnMaterialCC.AccessibleDescription");
			this.btnMaterialCC.AccessibleName = resources.GetString("btnMaterialCC.AccessibleName");
			this.btnMaterialCC.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnMaterialCC.Anchor")));
			this.btnMaterialCC.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnMaterialCC.BackgroundImage")));
			this.btnMaterialCC.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnMaterialCC.Dock")));
			this.btnMaterialCC.Enabled = ((bool)(resources.GetObject("btnMaterialCC.Enabled")));
			this.btnMaterialCC.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnMaterialCC.FlatStyle")));
			this.btnMaterialCC.Font = ((System.Drawing.Font)(resources.GetObject("btnMaterialCC.Font")));
			this.btnMaterialCC.Image = ((System.Drawing.Image)(resources.GetObject("btnMaterialCC.Image")));
			this.btnMaterialCC.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnMaterialCC.ImageAlign")));
			this.btnMaterialCC.ImageIndex = ((int)(resources.GetObject("btnMaterialCC.ImageIndex")));
			this.btnMaterialCC.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnMaterialCC.ImeMode")));
			this.btnMaterialCC.Location = ((System.Drawing.Point)(resources.GetObject("btnMaterialCC.Location")));
			this.btnMaterialCC.Name = "btnMaterialCC";
			this.btnMaterialCC.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnMaterialCC.RightToLeft")));
			this.btnMaterialCC.Size = ((System.Drawing.Size)(resources.GetObject("btnMaterialCC.Size")));
			this.btnMaterialCC.TabIndex = ((int)(resources.GetObject("btnMaterialCC.TabIndex")));
			this.btnMaterialCC.Text = resources.GetString("btnMaterialCC.Text");
			this.btnMaterialCC.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnMaterialCC.TextAlign")));
			this.btnMaterialCC.Visible = ((bool)(resources.GetObject("btnMaterialCC.Visible")));
			this.btnMaterialCC.Click += new System.EventHandler(this.btnMaterialCC_Click);
			// 
			// txtRevision
			// 
			this.txtRevision.AccessibleDescription = resources.GetString("txtRevision.AccessibleDescription");
			this.txtRevision.AccessibleName = resources.GetString("txtRevision.AccessibleName");
			this.txtRevision.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtRevision.Anchor")));
			this.txtRevision.AutoSize = ((bool)(resources.GetObject("txtRevision.AutoSize")));
			this.txtRevision.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtRevision.BackgroundImage")));
			this.txtRevision.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtRevision.Dock")));
			this.txtRevision.Enabled = ((bool)(resources.GetObject("txtRevision.Enabled")));
			this.txtRevision.Font = ((System.Drawing.Font)(resources.GetObject("txtRevision.Font")));
			this.txtRevision.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtRevision.ImeMode")));
			this.txtRevision.Location = ((System.Drawing.Point)(resources.GetObject("txtRevision.Location")));
			this.txtRevision.MaxLength = ((int)(resources.GetObject("txtRevision.MaxLength")));
			this.txtRevision.Multiline = ((bool)(resources.GetObject("txtRevision.Multiline")));
			this.txtRevision.Name = "txtRevision";
			this.txtRevision.PasswordChar = ((char)(resources.GetObject("txtRevision.PasswordChar")));
			this.txtRevision.ReadOnly = true;
			this.txtRevision.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtRevision.RightToLeft")));
			this.txtRevision.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtRevision.ScrollBars")));
			this.txtRevision.Size = ((System.Drawing.Size)(resources.GetObject("txtRevision.Size")));
			this.txtRevision.TabIndex = ((int)(resources.GetObject("txtRevision.TabIndex")));
			this.txtRevision.Text = resources.GetString("txtRevision.Text");
			this.txtRevision.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtRevision.TextAlign")));
			this.txtRevision.Visible = ((bool)(resources.GetObject("txtRevision.Visible")));
			this.txtRevision.WordWrap = ((bool)(resources.GetObject("txtRevision.WordWrap")));
			// 
			// txtCCNCode
			// 
			this.txtCCNCode.AccessibleDescription = resources.GetString("txtCCNCode.AccessibleDescription");
			this.txtCCNCode.AccessibleName = resources.GetString("txtCCNCode.AccessibleName");
			this.txtCCNCode.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCCNCode.Anchor")));
			this.txtCCNCode.AutoSize = ((bool)(resources.GetObject("txtCCNCode.AutoSize")));
			this.txtCCNCode.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCCNCode.BackgroundImage")));
			this.txtCCNCode.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCCNCode.Dock")));
			this.txtCCNCode.Enabled = ((bool)(resources.GetObject("txtCCNCode.Enabled")));
			this.txtCCNCode.Font = ((System.Drawing.Font)(resources.GetObject("txtCCNCode.Font")));
			this.txtCCNCode.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCCNCode.ImeMode")));
			this.txtCCNCode.Location = ((System.Drawing.Point)(resources.GetObject("txtCCNCode.Location")));
			this.txtCCNCode.MaxLength = ((int)(resources.GetObject("txtCCNCode.MaxLength")));
			this.txtCCNCode.Multiline = ((bool)(resources.GetObject("txtCCNCode.Multiline")));
			this.txtCCNCode.Name = "txtCCNCode";
			this.txtCCNCode.PasswordChar = ((char)(resources.GetObject("txtCCNCode.PasswordChar")));
			this.txtCCNCode.ReadOnly = true;
			this.txtCCNCode.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCCNCode.RightToLeft")));
			this.txtCCNCode.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCCNCode.ScrollBars")));
			this.txtCCNCode.Size = ((System.Drawing.Size)(resources.GetObject("txtCCNCode.Size")));
			this.txtCCNCode.TabIndex = ((int)(resources.GetObject("txtCCNCode.TabIndex")));
			this.txtCCNCode.Text = resources.GetString("txtCCNCode.Text");
			this.txtCCNCode.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCCNCode.TextAlign")));
			this.txtCCNCode.Visible = ((bool)(resources.GetObject("txtCCNCode.Visible")));
			this.txtCCNCode.WordWrap = ((bool)(resources.GetObject("txtCCNCode.WordWrap")));
			// 
			// txtUM
			// 
			this.txtUM.AccessibleDescription = resources.GetString("txtUM.AccessibleDescription");
			this.txtUM.AccessibleName = resources.GetString("txtUM.AccessibleName");
			this.txtUM.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtUM.Anchor")));
			this.txtUM.AutoSize = ((bool)(resources.GetObject("txtUM.AutoSize")));
			this.txtUM.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtUM.BackgroundImage")));
			this.txtUM.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtUM.Dock")));
			this.txtUM.Enabled = ((bool)(resources.GetObject("txtUM.Enabled")));
			this.txtUM.Font = ((System.Drawing.Font)(resources.GetObject("txtUM.Font")));
			this.txtUM.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtUM.ImeMode")));
			this.txtUM.Location = ((System.Drawing.Point)(resources.GetObject("txtUM.Location")));
			this.txtUM.MaxLength = ((int)(resources.GetObject("txtUM.MaxLength")));
			this.txtUM.Multiline = ((bool)(resources.GetObject("txtUM.Multiline")));
			this.txtUM.Name = "txtUM";
			this.txtUM.PasswordChar = ((char)(resources.GetObject("txtUM.PasswordChar")));
			this.txtUM.ReadOnly = true;
			this.txtUM.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtUM.RightToLeft")));
			this.txtUM.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtUM.ScrollBars")));
			this.txtUM.Size = ((System.Drawing.Size)(resources.GetObject("txtUM.Size")));
			this.txtUM.TabIndex = ((int)(resources.GetObject("txtUM.TabIndex")));
			this.txtUM.Text = resources.GetString("txtUM.Text");
			this.txtUM.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtUM.TextAlign")));
			this.txtUM.Visible = ((bool)(resources.GetObject("txtUM.Visible")));
			this.txtUM.WordWrap = ((bool)(resources.GetObject("txtUM.WordWrap")));
			// 
			// ItemCostMaintenance
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.txtUM);
			this.Controls.Add(this.txtCCNCode);
			this.Controls.Add(this.txtRevision);
			this.Controls.Add(this.txtMaterialCC);
			this.Controls.Add(this.txtDescription);
			this.Controls.Add(this.txtItem);
			this.Controls.Add(this.txtCostDescription);
			this.Controls.Add(this.btnMaterialCC);
			this.Controls.Add(this.dtmSetupDate);
			this.Controls.Add(this.lblMaterialCC);
			this.Controls.Add(this.chkMake);
			this.Controls.Add(this.tgridViewData);
			this.Controls.Add(this.btnCostDetail);
			this.Controls.Add(this.btnSearchProductDescription);
			this.Controls.Add(this.lblRev);
			this.Controls.Add(this.btnSearchProductCode);
			this.Controls.Add(this.btnItemHour);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.btnItemCost);
			this.Controls.Add(this.btnSave);
			this.Controls.Add(this.chkManual);
			this.Controls.Add(this.lblCostDescription);
			this.Controls.Add(this.lblDescription);
			this.Controls.Add(this.lblItem);
			this.Controls.Add(this.lblSetupDate);
			this.Controls.Add(this.lblCCN);
			this.Controls.Add(this.lblUM1);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.KeyPreview = true;
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "ItemCostMaintenance";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.Closing += new System.ComponentModel.CancelEventHandler(this.ItemCostMaintenance_Closing);
			this.Load += new System.EventHandler(this.ItemCostMaintenance_Load);
			this.Activated += new System.EventHandler(this.ItemCostMaintenance_Activated);
			this.Enter += new System.EventHandler(this.ItemCostMaintenance_Enter);
			((System.ComponentModel.ISupportInitialize)(this.tgridViewData)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmSetupDate)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		//**************************************************************************              
		///    <Description>
		///       Store the designed inteface of the grid 
		///       and later will get this setting back at runtime
		///       - Store Caption
		///       - Store Width
		///       - 
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void KeepTheGridDesign()
		{
			const string GRID_TABLE_NAME ="GRID";
			try 
			{
				DataColumn dcolMyColumn ; 
				dtGridDesign = new DataTable(GRID_TABLE_NAME);


				DataColumn[] dcolKey = new DataColumn[1];
			

				dcolMyColumn = new DataColumn();
				dcolMyColumn.DataType = typeof(string);
				dcolMyColumn.ColumnName= GRID_COL_NAME;
				dtGridDesign.Columns.Add(dcolMyColumn);
				dcolKey[0] = dcolMyColumn; //set this column as the primary key

				dcolMyColumn = new DataColumn();
				dcolMyColumn.DataType = typeof(string);
				dcolMyColumn.ColumnName= GRID_COL_CAPTION;
				dtGridDesign.Columns.Add(dcolMyColumn);


				dcolMyColumn = new DataColumn();
				dcolMyColumn.DataType = typeof(string);
				dcolMyColumn.ColumnName= GRID_COL_WIDTH;
				dtGridDesign.Columns.Add(dcolMyColumn);

				dtGridDesign.PrimaryKey = dcolKey;

				DataRow drNewRow;
				for (int i=0; i<tgridViewData.Columns.Count;i++)
				{
					if (tgridViewData.Columns[i].DataField.Trim() != String.Empty)
					{
						drNewRow = dtGridDesign.NewRow();
						drNewRow[GRID_COL_NAME] = tgridViewData.Columns[i].DataField;
						drNewRow[GRID_COL_CAPTION] = tgridViewData.Columns[i].Caption;
						drNewRow[GRID_COL_WIDTH] = tgridViewData.Splits[0].DisplayColumns[i].Width;
						dtGridDesign.Rows.Add(drNewRow);
					}
				}
			}
			catch (Exception ex) 
			{
				throw ex;
			}
		}
		//**************************************************************************              
		///    <Description>
		///       Enable or Disable button based on each status
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void EnableDisableButtons()
		{
//			ExtendedProButton extendPro ;
			//Enable Buttons
			
			if (objITM_ProductVO == null || objITM_ProductVO.ProductID <=0) 
			{
				btnCostDetail.Enabled = false;
				btnItemCost.Enabled = false;
				btnItemHour.Enabled = false;
				btnSave.Enabled = false;
			}
			else
			{
				//if (blnHasCost) // pending
				//{
					btnCostDetail.Enabled = true;
				//}
				//else
				//{
					
					// btnCostDetail.Enabled = false;
				//}
				btnItemCost.Enabled = true;
				btnItemHour.Enabled = true;
				
//				extendPro = (ExtendedProButton) btnSave.Tag;
//				if (extendPro == null || !extendPro.IsDisable)
//				{
					btnSave.Enabled = true;
//				}
//				else
//				{
//					btnSave.Enabled = false;
//				}
			}

		}
		//**************************************************************************              
		///    <Description>
		///       Load data for the first time at loading time into combo boxes on form
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void LoadDataToCombo()
		{
			try 
			{
				//Load the materical Cost center
				//ItemCostMaintenanceBO objItemCostMaintenanceBO = new ItemCostMaintenanceBO();
				//FormControlComponents.PutDataIntoC1ComboBox(cboMaterialCC,objItemCostMaintenanceBO.ListCostCenter(),ITM_CostCenterTable.CODE_FLD,ITM_CostCenterTable.COSTCENTERID_FLD,ITM_CostCenterTable.TABLE_NAME);
			}
			catch (PCSException ex)
			{
				throw ex;
			}
			catch (Exception ex)
			{
				throw ex;
			}

		}

		//**************************************************************************              
		///    <Description>
		///       Load cost detail data into the grid
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void LoadCostDetail(int pintProductID, int pintCCNID)
		{
			const string OPERCOST_CAPTION ="Oper.Cost"; 
			const string OPERHOUR_CAPTION ="Oper.Hour";
			const string DECIMAL_FORMAT = "Standard";
			try 
			{
				ItemCostMaintenanceBO objItemCostMaintenanceBO = new ItemCostMaintenanceBO();
				tgridViewData.DataSource = objItemCostMaintenanceBO.GetListOfCostDetail(pintProductID, pintCCNID);
				C1.Win.C1TrueDBGrid.C1DataColumn dc = new C1.Win.C1TrueDBGrid.C1DataColumn();
				dc.Caption =OPERCOST_CAPTION;
				dc.Tag = OPERCOST_CAPTION;

				//tgridViewData.Columns[intColumnIndex].Text="aaa";
				int intNewColIndex ; //= tgridViewData.Columns.IndexOf(dc);

				intNewColIndex = tgridViewData.Columns.Add(dc);
				tgridViewData.Splits[0].DisplayColumns[intNewColIndex].Visible = true;
				tgridViewData.Splits[0].DisplayColumns[intNewColIndex].Button = true;
				
				tgridViewData.Splits[0].DisplayColumns[intNewColIndex].ButtonText = true;

				
				dc = new C1.Win.C1TrueDBGrid.C1DataColumn();
				dc.Caption =OPERHOUR_CAPTION;
				dc.Tag = OPERHOUR_CAPTION;

				intNewColIndex = tgridViewData.Columns.Add(dc);
				tgridViewData.Splits[0].DisplayColumns[intNewColIndex].Visible = true;
				tgridViewData.Splits[0].DisplayColumns[intNewColIndex].Button = true;

				tgridViewData.Splits[0].DisplayColumns[intNewColIndex].ButtonText = true;

				//Center Heading
				for (int i = 0; i < tgridViewData.Splits[0].DisplayColumns.Count; i++)
				{
					tgridViewData.Splits[0].DisplayColumns[i].HeadingStyle.HorizontalAlignment = C1.Win.C1TrueDBGrid.AlignHorzEnum.Center;
				}
				
				//set the caption, width to the designed specification
				for (int i=0; i < dtGridDesign.Rows.Count ; i++)
				{
					tgridViewData.Columns[dtGridDesign.Rows[i][GRID_COL_NAME].ToString()].Caption = dtGridDesign.Rows[i][GRID_COL_CAPTION].ToString();
					tgridViewData.Splits[0].DisplayColumns[dtGridDesign.Rows[i][GRID_COL_NAME].ToString()].Width = int.Parse(dtGridDesign.Rows[i][GRID_COL_WIDTH].ToString());
				}

				tgridViewData.Columns[ITM_CostOperationTable.COMTOTALAMOUNT21_FLD].NumberFormat = DECIMAL_FORMAT; // Constants.CELL_NUMBER_FORMAT;
				tgridViewData.Columns[ITM_CostOperationTable.VADDCOSTTOTALAMOUNT21_FLD].NumberFormat = DECIMAL_FORMAT; //Constants.CELL_NUMBER_FORMAT;
				tgridViewData.Columns[ITM_CostOperationTable.OPERCOSTTOTALAMOUNT21_FLD].NumberFormat = DECIMAL_FORMAT; //Constants.CELL_NUMBER_FORMAT;
			}
			catch (PCSException ex)
			{
				throw ex;
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}

		//**************************************************************************              
		///    <Description>
		///       Display the product information
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void DisplayProductInfo() 
		{
			//display product information
			try 
			{
				ItemCostMaintenanceBO objItemCostMaintenanceBO = new ItemCostMaintenanceBO();

				//Display CCN code
				UtilsBO objUtilsBO = new UtilsBO();
				txtCCNCode.Text = objUtilsBO.GetCCNCodeFromID(objITM_ProductVO.CCNID);

				//Display the setup date
				dtmSetupDate.Value = objITM_ProductVO.SetupDate;

				//Display the Item code
				txtItem.Text = objITM_ProductVO.Code;

				//Display the item description
				txtDescription.Text = objITM_ProductVO.Description;

				//Display the revision
				txtRevision.Text = objITM_ProductVO.Revision;

				//Make item check box
				chkMake.Checked = objITM_ProductVO.MakeItem;

				//Unit of measure code
				txtUM.Text = objItemCostMaintenanceBO.GetUnitCodeFromID(objITM_ProductVO.StockUMID);


				//Display the material cost center
				//get the cost center

				DataRow drowData = objItemCostMaintenanceBO.GetProductCostCenter(objITM_ProductVO.ProductID);
				if(drowData[ITM_CostCenterTable.COSTCENTERID_FLD] != DBNull.Value)
					objITM_ProductVO.CostCenterID = int.Parse(drowData[ITM_CostCenterTable.COSTCENTERID_FLD].ToString());

				if (objITM_ProductVO.CostCenterID > 0)
				{
					//cboMaterialCC.SelectedValue = objITM_ProductVO.CostCenterID;
					txtMaterialCC.Text = drowData[ITM_CostCenterTable.CODE_FLD].ToString();
					txtMaterialCC.Tag = objITM_ProductVO.CostCenterID;
				}
				else
				{
					//cboMaterialCC.SelectedIndex = -1;
					//cboMaterialCC.Text = String.Empty;
					txtMaterialCC.Text = String.Empty;
				}
				//Get the Product cost description
				DataTable dtTmp = objItemCostMaintenanceBO.GetItemCostDescription(objITM_ProductVO.ProductID, objITM_ProductVO.CCNID);

				//Display the Manual
				if (dtTmp.Rows.Count >0)
				{
					if (dtTmp.Rows[0][ITM_CostTable.MANUAL_FLD] != DBNull.Value)
					{
						chkManual.Checked = bool.Parse(dtTmp.Rows[0][ITM_CostTable.MANUAL_FLD].ToString());
					}
					else
					{
						chkManual.Checked = false;
					}
					
					txtCostDescription.Text = dtTmp.Rows[0][ITM_CostTable.COSTDESCRIPTION_FLD].ToString();
					blnHasCost = true;
				}
				else
				{
					txtCostDescription.Text = String.Empty;
					chkManual.Checked = false;
					blnHasCost = false;
				}
				if (chkMake.Checked)
				{
					chkManual.Enabled = false;
				}
				else
				{
					chkManual.Enabled = true;
				}
			}
			catch (PCSException ex)
			{
				throw ex;
			}
			catch (Exception ex)
			{
				throw ex;
			}

		}
		//**************************************************************************              
		///    <Description>
		///       Disable or Enable the button based on the user action on form
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void ChangeToEditMode()
		{
			enumAction = EnumAction.Edit;
//			btnItemCost.Enabled = false;
//			btnItemHour.Enabled = false;
//			btnItemCost.Enabled = false;

		}
		//**************************************************************************              
		///    <Description>
		///       Implement the form load
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void ItemCostMaintenance_Load(object sender, System.EventArgs e)
		{
			blnHasCost = false;
			const string METHOD_NAME = THIS + ".ItemCostMaintenance_Load()";
			try 
			{
				//Set authorization for user
				Security objSecurity = new Security();
				this.Name = THIS;
			
				if(objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					// You don't have the right to view this item
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW,MessageBoxIcon.Warning);
					this.Close();
					return;
				}
				

				enumAction = new EnumAction();

				//Keep the Grid Design (for multi languages)
				KeepTheGridDesign();

				//load the data for combo box
				LoadDataToCombo();

				if (objITM_ProductVO != null) 
				{
					//Display the Product information
					DisplayProductInfo();
					//Display the Cost detail information
					LoadCostDetail(objITM_ProductVO.ProductID, objITM_ProductVO.CCNID);
				}

				enumAction = EnumAction.Default;

				//Diable or Enable buttons
				EnableDisableButtons();
				if (objITM_ProductVO != null)
				{
					enumAction = EnumAction.Edit;
				}

			}
			catch (PCSException ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		
		}

		//**************************************************************************              
		///    <Description>
		///       Save Data into Database
		///       It will call the SaveDatabase method
		///       and after that it will display a successful message 
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private bool CheckBeforeSaving()
		{
			return true;
		}
		//**************************************************************************              
		///    <Description>
		///       Save data into database
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void SaveToDatabase()
		{
			try 
			{
				//Init the BO class
				ItemCostMaintenanceBO objItemCostMaintenanceBO = new ItemCostMaintenanceBO();

				//Create the VO class
				ITM_CostVO objITM_CostVO = new ITM_CostVO();
				objITM_CostVO.Manual = chkManual.Checked;
				objITM_CostVO.CostDescription = txtCostDescription.Text;
				objITM_CostVO.ProductID = objITM_ProductVO.ProductID;
				objITM_CostVO.CCNID = objITM_ProductVO.CCNID;
				
				//call the update method in the BO class
				int intCostCenterID;
				if (txtMaterialCC.Text.Trim() == String.Empty )
				{
					intCostCenterID = 0;
				}
				else
				{
					intCostCenterID = int.Parse(txtMaterialCC.Tag.ToString());
				}
				objItemCostMaintenanceBO.UpdateITMCost(objITM_CostVO,intCostCenterID);
			}
			catch (PCSException ex)
			{
				throw ex;
			}
			catch (Exception ex) 
			{
				throw ex;
			}
		}

		//**************************************************************************              
		///    <Description>
		///       Implement the Save button click
		///       1. Check the data
		///       2. Call the SaveToDatabase Method
		///       3. Refresh all the button status on form
		///       4. Display the successful message
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void btnSave_Click(object sender, System.EventArgs e)
		{
			
//			if (enumAction != EnumAction.Edit)
//			{
//				return;
//			}
			const string METHOD_NAME = THIS + ".btnSave_Click()";
			try 
			{
//				if (!CheckBeforeSaving())
//				{
//					return ;
//				}
				SaveToDatabase();
				enumAction = EnumAction.Default;
				blnHasCost = true;
				EnableDisableButtons();
				PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA, MessageBoxIcon.Information);
				DisableControlsIfNonMakeItem(chkMake.Checked);
					

			}
			catch (PCSDBException ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		
		}
		//**************************************************************************              
		///    <Description>
		///       Closing form
		///       1. Before closing check the edit status on form
		///       2. If it is eddited or added new ==> display a message to inform user
		///       3. Call the Save Database
		///       4. After saving, exit form
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void ItemCostMaintenance_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".PODeliverySchedule_Closing()";
			try
			{
				if (enumAction == EnumAction.Add || enumAction == EnumAction.Edit)
				{
					System.Windows.Forms.DialogResult dlgResult = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_STORE_INTO_DATABASE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
					switch (dlgResult)
					{
						case DialogResult.Yes:
							if (!CheckBeforeSaving())
							{
								e.Cancel = true;
								break;
							}

							SaveToDatabase();
							e.Cancel = false;
							break;
						case DialogResult.No:
							e.Cancel = false;
							break;
						case DialogResult.Cancel:
							e.Cancel = true;
							break;
					}
				}
			}			
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				e.Cancel = true;
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
				e.Cancel = true;

			}

		}

		private void btnClose_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void btnAdd_Click(object sender, System.EventArgs e)
		{
		
		}

		private void btnEdit_Click(object sender, System.EventArgs e)
		{
			enumAction = EnumAction.Edit;
		}
		/// <summary>
		/// DisableControlsIfNonMakeItem
		/// </summary>
		/// <param name="pblnMakeItem"></param>
		/// <author>Trada</author>
		/// <date>Wednesday, October 5 2005</date>
		private void DisableControlsIfNonMakeItem(bool pblnMakeItem)
		{
			const string METHOD_NAME = THIS + ".DisableControlsIfNonMakeItem()";
			try
			{
				btnItemCost.Enabled = pblnMakeItem;
				btnItemHour.Enabled = pblnMakeItem;
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		//**************************************************************************              
		///    <Description>
		///       Implement the Product search by click at code
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void btnSearchProductCode_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSearchProductCode_Click()";
			try 
			{
				DataRowView drvResult;
				drvResult = null;
				drvResult = FormControlComponents.OpenSearchForm(ITM_ProductTable.TABLE_NAME,ITM_ProductTable.CODE_FLD,txtItem.Text.Trim().Replace("'","''"), null, true);
				if (drvResult != null) 
				{
					//Get the product information
					ProductItemInfoBO objProductItemInfoBO = new ProductItemInfoBO();
					objITM_ProductVO = objProductItemInfoBO.GetProductInfo(int.Parse(drvResult[ITM_ProductTable.PRODUCTID_FLD].ToString()));

					//Displat the information
					DisplayProductInfo();

					//Load the Cost detail 
					LoadCostDetail(objITM_ProductVO.ProductID, objITM_ProductVO.CCNID);

					//Enable and Diable buttons
					enumAction = EnumAction.Edit;
					EnableDisableButtons();
					//Disable/Enable controls if Non-Make Item
					DisableControlsIfNonMakeItem(bool.Parse(drvResult[ITM_ProductTable.MAKEITEM_FLD].ToString()));
				}
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}

			}

		}
		//**************************************************************************              
		///    <Description>
		///       Search by description
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void btnSearchProductDescription_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSearchProductDescription_Click()";
			try 
			{
				DataRowView drvResult;
				drvResult = null;
				drvResult = FormControlComponents.OpenSearchForm(ITM_ProductTable.TABLE_NAME,ITM_ProductTable.DESCRIPTION_FLD, txtDescription.Text.Trim().Replace("'","''"),  null, true);
				if (drvResult != null) 
				{
					//Get the product information
					ProductItemInfoBO objProductItemInfoBO = new ProductItemInfoBO();
					objITM_ProductVO = objProductItemInfoBO.GetProductInfo(int.Parse(drvResult[ITM_ProductTable.PRODUCTID_FLD].ToString()));

					//Displat the information
					DisplayProductInfo();

					//Load the Cost detail 
					LoadCostDetail(objITM_ProductVO.ProductID, objITM_ProductVO.CCNID);

					//Enable and Diable buttons
					EnableDisableButtons();
					//Disable/Enable controls if Non-Make Item
					DisableControlsIfNonMakeItem(bool.Parse(drvResult[ITM_ProductTable.MAKEITEM_FLD].ToString()));

				}
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}

			}
		
		}
		//**************************************************************************              
		///    <Description>
		///       button click on form
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void tgridViewData_ButtonClick(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".tgridViewData_ButtonClick()";
			if (objITM_ProductVO == null || objITM_ProductVO.ProductID <= 0)
			{
				return;
			}
			try 
			{
				
				switch (e.Column.DataColumn.Tag.ToString()) 
				{
					case OPERCOST_COL_NAME:
						OperCostDetail frmOperCostDetail = new OperCostDetail(objITM_ProductVO.ProductID,objITM_ProductVO.CCNID);
						frmOperCostDetail.ShowDialog();
						break;
					case OPERHOUR_COL_NAME:
						OperHourDetail frmOperHourDetail = new OperHourDetail(objITM_ProductVO.ProductID,objITM_ProductVO.CCNID);
						frmOperHourDetail.ShowDialog();
						break;
				}
			}			
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}

			}

		}

		private void chkManual_CheckedChanged(object sender, System.EventArgs e)
		{
			//ChangeToEditMode();
		}

		private void txtCostDescription_TextChanged(object sender, System.EventArgs e)
		{
			ChangeToEditMode();
		}
		//**************************************************************************              
		///    <Description>
		///       Call the Cost Detail form
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void btnCostDetail_Click(object sender, System.EventArgs e)
		{
			if (enumAction == EnumAction.Edit)
			{
				//MessageBox.Show("You have to save data before using this button");
				PCSMessageBox.Show(ErrorCode.MESSAGE_ITEM_COST_SAVEDATAFIRST,MessageBoxIcon.Warning);
				return;
			}

			const string METHOD_NAME = THIS + ".btnCostDetail_Click()";

			try 
			{
				ItemCostDetailMaintenance frmItemCostDetailMaintenance = new ItemCostDetailMaintenance();
				frmItemCostDetailMaintenance.CCNID = objITM_ProductVO.CCNID;
				frmItemCostDetailMaintenance.ProductID = objITM_ProductVO.ProductID;
				frmItemCostDetailMaintenance.Make = chkMake.Checked;
				frmItemCostDetailMaintenance.ShowDialog();
			}			
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}

			}

		}

		private void btnItemCost_Click(object sender, System.EventArgs e)
		{
			if (enumAction == EnumAction.Edit)
			{
				//MessageBox.Show("You have to save data before using this button");
				PCSMessageBox.Show(ErrorCode.MESSAGE_ITEM_COST_SAVEDATAFIRST,MessageBoxIcon.Warning);
				
				return;
			}

			const string METHOD_NAME = THIS + ".btnItemCost_Click()";

			try 
			{
				ItemCostDetail frmItemCostDetail = new ItemCostDetail(objITM_ProductVO.ProductID,objITM_ProductVO.CCNID);
				frmItemCostDetail.ShowDialog();

			}			
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		//**************************************************************************              
		///    <Description>
		///      Call the Item Hour Detail form
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************

		private void btnItemHour_Click(object sender, System.EventArgs e)
		{
			if (enumAction == EnumAction.Edit)
			{
				//MessageBox.Show("You have to save data before using this button");
				PCSMessageBox.Show(ErrorCode.MESSAGE_ITEM_COST_SAVEDATAFIRST,MessageBoxIcon.Warning);
				return;
			}

			const string METHOD_NAME = THIS + ".btnItemHour_Click()";

			try 
			{
				ItemHourDetail frmItemHourDetail = new ItemHourDetail(objITM_ProductVO.ProductID,objITM_ProductVO.CCNID);
				frmItemHourDetail.ShowDialog();

			}			
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}

			}
		
		}

		//**************************************************************************              
		///    <Description>
		///       When user press any information on the code,
		///       the system will automatically search for the product code
		///       and display its information on form
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void txtItem_Leave(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtItem_Leave()";
			try 
			{
				FormControlComponents.OnLeaveControl(sender, e);
				if (!btnSearchProductCode.Enabled || !txtItem.Modified)
				{
					return;
				}
				if (txtItem.Text == string.Empty)
					return;
				DataRowView drvResult;
				drvResult = null;
				drvResult = FormControlComponents.OpenSearchForm(ITM_ProductTable.TABLE_NAME,ITM_ProductTable.CODE_FLD,txtItem.Text.Trim().Replace("'","''"), null, false);
				if (drvResult != null) 
				{
					//Get the product information
					ProductItemInfoBO objProductItemInfoBO = new ProductItemInfoBO();
					objITM_ProductVO = objProductItemInfoBO.GetProductInfo(int.Parse(drvResult[ITM_ProductTable.PRODUCTID_FLD].ToString()));

					//Displat the information
					DisplayProductInfo();

					//Load the Cost detail 
					LoadCostDetail(objITM_ProductVO.ProductID, objITM_ProductVO.CCNID);

					//Enable and Diable buttons
					enumAction = EnumAction.Edit;
					EnableDisableButtons();
					//Disable/Enable controls if Non-Make Item
					DisableControlsIfNonMakeItem(bool.Parse(drvResult[ITM_ProductTable.MAKEITEM_FLD].ToString()));
				}
				else
					txtItem.Focus();
			}			
			catch (PCSException ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}

			}
		
		}
		//**************************************************************************              
		///    <Description>
		///       Implement the save as Item_Leave
		///    </Description>
		///    <Inputs>
		///       
		///    </Inputs>
		///    <Outputs>
		///       
		///    </Outputs>
		///    <Returns>
		///       
		///    </Returns>
		///    <Authors>
		///       THIENHD
		///    </Authors>
		///    <History>
		///       15-Dec-2004
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void txtDescription_Leave(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtDescription_Leave()";
			//Only use when users use this to search for existing product
			try 
			{
				FormControlComponents.OnLeaveControl(sender, e);

				if (!btnSearchProductDescription.Enabled || !txtDescription.Modified)
				{
					return;
				}
				if (txtDescription.Text == string.Empty)
					return;

				DataRowView drvResult;
				drvResult = null;
				drvResult = FormControlComponents.OpenSearchForm(ITM_ProductTable.TABLE_NAME,ITM_ProductTable.DESCRIPTION_FLD, txtDescription.Text.Trim().Replace("'","''"),  null, false);
				if (drvResult != null) 
				{
					//Get the product information
					ProductItemInfoBO objProductItemInfoBO = new ProductItemInfoBO();
					objITM_ProductVO = objProductItemInfoBO.GetProductInfo(int.Parse(drvResult[ITM_ProductTable.PRODUCTID_FLD].ToString()));

					//Displat the information
					DisplayProductInfo();

					//Load the Cost detail 
					LoadCostDetail(objITM_ProductVO.ProductID, objITM_ProductVO.CCNID);

					//Enable and Diable buttons
					EnableDisableButtons();
					//Disable/Enable controls if Non-Make Item
					DisableControlsIfNonMakeItem(bool.Parse(drvResult[ITM_ProductTable.MAKEITEM_FLD].ToString()));

				}
				else
					txtDescription.Focus();
			}			
			catch (PCSException ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}

			}
		
		}

		private void txtItem_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode == Keys.F4)
			{
				if (btnSearchProductCode.Enabled)
				{
					btnSearchProductCode_Click(null,null);
				}
			}
		
		}

		private void txtDescription_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode == Keys.F4)
			{
				if (btnSearchProductDescription.Enabled)
				{
					btnSearchProductDescription_Click(null,null);
				}
			}
		
		}

		private void cboMaterialCC_Enter(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ". OnEnterControl()";
			try
			{
				FormControlComponents.OnEnterControl(sender, e);
			}
			catch (Exception ex)
			{

				// displays the error message.

				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);

				// log message.

				try

				{

					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);

				}

				catch

				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}

		
		}

		private void cboMaterialCC_Leave(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ". OnLeaveControl()";

			try

			{

				FormControlComponents.OnLeaveControl(sender, e);

			}

			catch (Exception ex)

			{

				// displays the error message.

				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);

				// log message.

				try

				{

					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);

				}

				catch

				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}

		
		}

		private void txtCostDescription_Enter(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ". txtCostDescription_Enter()";

			try

			{

				FormControlComponents.OnEnterControl(sender, e);

			}

			catch (Exception ex)

			{

				// displays the error message.

				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);

				// log message.

				try

				{

					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);

				}

				catch

				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}
		
		}

		private void txtCostDescription_Leave(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ". txtCostDescription_Leave()";

			try

			{

				FormControlComponents.OnLeaveControl(sender, e);

			}

			catch (Exception ex)

			{

				// displays the error message.

				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);

				// log message.

				try

				{

					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);

				}

				catch

				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}

		
		}

		private void txtItem_Enter(object sender, System.EventArgs e)
		{

			const string METHOD_NAME = THIS + ". txtItem_Enter()";

			try

			{

				FormControlComponents.OnEnterControl(sender, e);

			}

			catch (Exception ex)

			{

				// displays the error message.

				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);

				// log message.

				try

				{

					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);

				}

				catch

				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}
		
		}

		private void dtmSetupDate_Leave(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ". OnLeaveControl()";

			try

			{

				//FormControlComponents.OnLeaveControl(sender, e);

			}

			catch (Exception ex)

			{

				// displays the error message.

				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);

				// log message.

				try

				{

					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);

				}

				catch

				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}
		
		}

		private void dtmSetupDate_Enter(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ". dtmSetupDate_Enter()";
			try
			{
				//FormControlComponents.OnEnterControl(sender, e);
			}
			catch (Exception ex)
			{
				// displays the error message.

				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);

				// log message.

				try

				{

					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);

				}

				catch

				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}
		
		}

		private void txtDescription_Enter(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ". OnEnterControl()";

			try

			{

				FormControlComponents.OnEnterControl(sender, e);

			}

			catch (Exception ex)

			{

				// displays the error message.

				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);

				// log message.

				try

				{

					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);

				}

				catch

				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}

		}

		private void ItemCostMaintenance_Enter(object sender, System.EventArgs e)
		{
			//txtItem.Focus();

		}

		private void ItemCostMaintenance_Activated(object sender, System.EventArgs e)
		{
			//txtItem.Focus();

		}

		private void btnMaterialCC_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnMaterialCC_Click()";
			try 
			{
				DataRowView drvResult;
				drvResult = null;
				drvResult = FormControlComponents.OpenSearchForm(ITM_CostCenterTable.TABLE_NAME,ITM_CostCenterTable.CODE_FLD,txtMaterialCC.Text.Trim().Replace("'","''"), null, true);
				if (drvResult != null) 
				{
					//Get 
                    txtMaterialCC.Text = drvResult[ITM_CostCenterTable.CODE_FLD].ToString();
					txtMaterialCC.Tag = drvResult[ITM_CostCenterTable.COSTCENTERID_FLD];
				}
				//btnMaterialCC.Focus();
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}

			}
		}

		private void txtMaterialCC_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (e.KeyCode == Keys.F4)
			{
				if (btnMaterialCC.Enabled)
				{
					btnMaterialCC_Click(null,null);
				}
			}

		}

		private void txtMaterialCC_Enter(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ". txtMaterialCC_Enter()";

			try

			{
				FormControlComponents.OnEnterControl(sender, e);
			}
			catch (Exception ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{

					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);

				}

			}
		}
		/// <summary>
		/// txtMaterialCC_Leave
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Friday, October 7 2005</date>
		private void txtMaterialCC_Leave(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtMaterialCC_Leave()";
			try
			{
				FormControlComponents.OnLeaveControl(sender, e);
				if (txtMaterialCC.Text == string.Empty)
				{
					return;
				}
				if (!txtMaterialCC.Modified)
				{
					return;
				}
				DataRowView drvResult;
				drvResult = FormControlComponents.OpenSearchForm(ITM_CostCenterTable.TABLE_NAME,ITM_CostCenterTable.CODE_FLD,txtMaterialCC.Text.Trim().Replace("'","''"), null, false);
				if (drvResult != null) 
				{
					//Get 
					txtMaterialCC.Text = drvResult[ITM_CostCenterTable.CODE_FLD].ToString();
					txtMaterialCC.Tag = drvResult[ITM_CostCenterTable.COSTCENTERID_FLD];
				}
				else
					txtMaterialCC.Focus();
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
	}
}
